package com.jilijili;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@ComponentScan(basePackages = {"org.n3r.idworker","com.jilijili"})
@EnableMongoRepositories // 启用 Mongo 存储库
@EnableDiscoveryClient //开启注册发现
@EnableScheduling //定时任务
public class JiLiJiLiApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(JiLiJiLiApiApplication.class, args);
    }
}
